
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:scrum="http://java.sun.com/jsf/composite/components"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <composite:interface>
        <composite:valueHolder name="image"/>
    </composite:interface>

    <composite:implementation>

        <h:form id="menuSelectProjectForm">
            <table width="990" class="menuTable" cellpadding="0" cellspacing="0" id="menuTable">
                <tr>
                    <scrum:menuItem>
                        <ui:param name="label" value="#{i18n['menuitem.label.home']}"></ui:param>
                        <ui:param name="destination" value="#{i18n['menuitem.path.home']}"></ui:param>
                        <ui:param name="menuid" value="1"></ui:param>
                    </scrum:menuItem>
                    <scrum:menuItem>
                        <ui:param name="label" value="#{i18n['menuitem.label.projects']}"></ui:param>
                        <ui:param name="destination" value="#{i18n['menuitem.path.projects']}"></ui:param>
                        <ui:param name="menuid" value="2"></ui:param>
                    </scrum:menuItem>
                    <scrum:menuItem>
                        <ui:param name="label" value="#{i18n['menuitem.label.settings']}"></ui:param>
                        <ui:param name="destination" value=""></ui:param>
                        <ui:param name="menuid" value="4"></ui:param>
                    </scrum:menuItem>
                    
                    <td>
                        <h:outputLabel for="prjCombo" value="#{i18n['home.project.combo.label']}" styleClass="formLabel" />
                        <h:selectOneMenu id="prjCombo" value="#{projectManager.currentProject}" styleClass="formInput">
                            <f:selectItems value="#{projectManager.projectList}" var="project" itemLabel="#{project.name}" itemValue="#{project}"/>
                        </h:selectOneMenu>
                    </td>
                    <td>
                        <h:commandButton value="Изменить проект" action="#{projectManager.viewSprints}"></h:commandButton>
                    </td>
                </tr>
                <tr>
                    <scrum:submenu>
                        <ui:param name="menuid" value="1"></ui:param>
                    </scrum:submenu>

                    <scrum:submenu>
                        <ui:param name="menuid" value="2"></ui:param>
                        <scrum:submenuItem>
                            <ui:param name="label" value="#{i18n['menuitem.label.showProjects']}"></ui:param>
                            <ui:param name="destination" value="#{i18n['menuitem.path.showProjects']}"></ui:param>
                        </scrum:submenuItem>

                    </scrum:submenu>
                    <scrum:submenu>
                        <ui:param name="menuid" value="4"></ui:param>

                        <scrum:submenuItem>
                            <ui:param name="label" value="#{i18n['menuitem.label.changeskin']}"></ui:param>
                            <ui:param name="destination" value="#{i18n['menuitem.path.changeskin']}"></ui:param>
                        </scrum:submenuItem>
                    </scrum:submenu>
                                        
                </tr>
            </table>
            
        </h:form>
    </composite:implementation>
</html>